
<h2>Nuestros Locales</h2>
<?php

$this->placeholder('side')->captureStart();

?>
<div class="sucursales">
<?php
foreach ( $this->negocios as $negocio){
    
    $link = $this->url(array('negocioUrl' => $negocio->url), 'negocio');
    
?>
<div class="negocio" >
<h3><a class="name" href="<?php echo $link?>"><?php echo $this->commerceNombreSucursal( $this->whiteLabelName, $negocio->nombre)?></a></h3>
<p  class="address"><?php echo $negocio->getDireccion()?></p>
</div>
<?php
}
?>
</div>
<?php

$this->placeholder('side')->captureEnd();
?>

<br />
<div id="zoneMap"></div>
<br />
<?php 

$this->jQuery()->javascriptCaptureStart();

$negocio = current($this->negocios);

?>


var $center = <?php echo $this->addressToJson( $negocio->getDireccion() )?>;

var $areas = <?php echo $this->areaToJson( $this->negocios->getZonas() )?>;

var $negocios = <?php echo $this->addressToJson( $this->negocios )?>;

<?php 
if (isset($this->cliente)){	
	echo 'var $addresses = '.$this->addressToJson( $this->cliente->getDirecciones() ).';';
} else {	
	echo 'var $addresses = new Array();';
}


$this->jQuery()->javascriptCaptureEnd();

$this->jQuery()->onLoadCaptureStart();

?>
$mapOptions.width = 620;	
$mapOptions.height = 400;	
$mapOptions.zoom = 11;	
bindSucursales();

<?php 
$this->jQuery()->onLoadCaptureEnd();

?>